/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entidades.Revision;

import java.io.Serializable;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Roggers
 */
@Entity
@Table(name = "revisor")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Revisor.findAll", query = "SELECT r FROM Revisor r"),
    @NamedQuery(name = "Revisor.findByIdRevisor", query = "SELECT r FROM Revisor r WHERE r.idRevisor = :idRevisor")})
public class Revisor implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "IdRevisor", nullable = false)
    private Integer idRevisor;

    public Revisor() {
    }

    public Revisor(Integer idRevisor) {
        this.idRevisor = idRevisor;
    }

    public Integer getIdRevisor() {
        return idRevisor;
    }

    public void setIdRevisor(Integer idRevisor) {
        this.idRevisor = idRevisor;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idRevisor != null ? idRevisor.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Revisor)) {
            return false;
        }
        Revisor other = (Revisor) object;
        if ((this.idRevisor == null && other.idRevisor != null) || (this.idRevisor != null && !this.idRevisor.equals(other.idRevisor))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Entidades.Revision.Revisor[ idRevisor=" + idRevisor + " ]";
    }
    
}
